home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d14 / ccwindem.arc / DEMO.BAT < prev    next >
DOS Batch File  |  1991-02-25  |  2KB  |  63 lines

  1. echo off
  2. cls
  3.  
  4. if %1Z==Z goto error1
  5. if %2Z==Z goto error2
  6.  
  7. %2
  8. md %2\CCDEMO
  9. cd %2\CCDEMO
  10.  
  11. :disk1
  12. if exist %1CMPRDEMO.EXE goto disk1a
  13. cls
  14. echo Please put the demonstration disk in the %1 drive.
  15. pause
  16. goto disk1
  17.  
  18. :disk1a
  19. cls
  20. echo Uncompressing files - please wait ...
  21. %2
  22. %1CMPRDEMO
  23.  
  24. if not exist %2\CCDEMO\CCMAIL.EXE goto error
  25.  
  26. cls
  27. echo Installation successful.
  28. echo.
  29. echo Type DEMO to start the cc:Mail Post Office Pack for Windows Demonstration.
  30. %2
  31. goto exit
  32.  
  33. :error
  34. cls
  35. echo Installation error:  
  36. echo   Be sure you have 1.5 MB of free space on your hard disk.
  37. goto exit
  38.  
  39. :error1
  40. cls
  41. echo cc:Mail Post Office Pack for Windows Demonstration
  42. echo -----------------------------------------------------------------------
  43. echo.
  44. echo The demonstration requires 1.5 MB of disk space.  Please be sure space
  45. echo is available on your hard drive before continuing with this
  46. echo installation program.
  47. echo.
  48. echo The demonstration files are distributed in a compressed format.
  49. echo This installation will uncompress the files and place them in a 
  50. echo directory called \CCDEMO on your hard drive. You will see the words
  51. echo "Installation successful" if there are no errors.
  52. echo.
  53. :error2
  54. echo To install the demonstration:
  55. echo.
  56. echo 1. Change the current drive to your floppy drive.
  57. echo.
  58. echo 2. Type DEMO x: y:, where x is the drive letter of your floppy
  59. echo    drive and y is the drive letter of your hard drive.
  60. echo.
  61.  
  62. :exit
  63.